//
//  GRLoginAction.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/12.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import <Foundation/Foundation.h>

@class GRRegisterViewController;

@interface GRLoginAction : NSObject


/**
 获取验证码 (type: login, register, password, bind, safePassword)

 @param option <#paramer description#>
 */
+ (void)getVerificationCode:(NSDictionary *)option;

/**
 登录
 
 @param paramer <#paramer description#>
 @param completionHandler <#completionHandler description#>
 */
+ (void)gotoLoginWithParamer:(NSDictionary *)paramer completionHandler:(RequestBlock)completionHandler;



/**
 绑定手机号

 @param paramer <#paramer description#>
 @param completionHandler <#completionHandler description#>
 */
+ (void)associatedMobile:(NSDictionary *)paramer completionHandler:(RequestBlock)completionHandler;



/**
 设置密码 或 忘记密码

 @param registerMode <#registerMode description#>
 @param paramers <#paramers description#>
 @param completionHandler <#completionHandler description#>
 */
+ (void)setPasswordWithRegisterMode:(NSInteger)registerMode paaramers:(NSDictionary *)paramers completionHandler:(RequestBlock)completionHandler;



/**
 修改密码

 @param registerMode <#registerMode description#>
 @param paramers <#paramers description#>
 @param completionHandler <#completionHandler description#>
 */
+ (void)modifyPasswordWithRegisterMode:(NSInteger)registerMode paramers:(NSDictionary *)paramers completionHandler:(RequestBlock)completionHandler;





@end
